import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
  {
    path: "/",
    redirect: "/home",
    children: [
      {
        path: "home",
        name: "一张图",
        redirect: "/home/zhhhzl",
        component: () => import("../views/home/index.vue"),
        children: [
          {
            path: "zhhhzl",
            name: "智慧河湖总览",

            component: () => import("../views/zhhhzl/index.vue"),
          },
          {
            path: "fhzt",
            name: "防洪专题",
            component: () => import("../views/fhzt/index.vue"),
          },
          {
            path: "hhzz",
            name: "河湖长制专题",
            component: () => import("../views/hhzz/index.vue"),
          },
        ],
      },
    ],
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
